home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
antenna
/
yagiu112
/
test.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-25
|
248b
|
20 lines
#include <math.h>
#include <stdio.h>
main()
{
double swr,a,b,c;
swr=9.76;
do{
swr+=0.00001;
a=1-log10(swr);
b= 1/(swr*swr);
c=a-b;
printf("swr=%lf, 1-log10(swr)=%lf, 1/swr^2=%lf\n", swr,a,b);
}while(c>0);
printf("swr=%lf\n",swr);
}